﻿<%@ Page Title="" Language="C#" MasterPageFile="~/UFSSMaster.Master" AutoEventWireup="true" CodeBehind="userpage.aspx.cs" Inherits="UFSSWebApp.userpage" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .style3
        {
            width: 395px;
        }
        .style4
        {
            width: 321px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="PageName" runat="server">
    <% 
    try
    {
        
        Response.Write("User / " + Session["user"].ToString());
    }
    catch
    {
        //Response.Redirect("~/home.aspx");
    }
     %>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="Body" runat="server">
    <div class="Box" style="width:500px"> 
        <span class="subheading"><% 
                                     try
                                     {
                                         Response.Write(Session["user"].ToString());
                                     }
                                     catch
                                     {
                                     }
                                     %>'s Profile</span><hr />
        <table>
            <tbody>
                <tr>
                    <td><b>First Name: </b></td>
                    <td><asp:Label ID="lblFName" runat="server" Text=""></asp:Label></td>
                </tr>
                <tr><td></td></tr>
                <tr>
                    <td><b>Number of Files: </b></td>
                    <td><asp:Label ID="lblNumFiles" runat="server" Text=""></asp:Label></td>
                </tr>
                <tr><td></td></tr>
                <tr>
                    <td><b>Number of Friends: </b></td>
                    <td><asp:Label ID="lblNumFriends" runat="server" Text=""></asp:Label></td>
                </tr>
                <tr><td></td></tr>
                <tr>
                    <td><b>Number of Subscriptions: </b></td>
                    <td><asp:Label ID="lblNumSubs" runat="server" Text=""></asp:Label></td>
                </tr>
                <tr><td></td></tr>
                <tr>
                    <td><b>Subscribed To: </b></td>
                    <td><asp:Label ID="lblSubbedTo" runat="server" Text=""></asp:Label></td>
                </tr>
                <tr><td></td></tr>
                <tr>
                    <td align="center"><asp:Button ID="btnRequest" runat="server" Text="Request Friend" 
                            onclick="btnRequest_Click" /></td>
                    <td align="center"><asp:Button ID="btnSendMessage" runat="server" 
                            Text="Send Message" onclick="btnSendMessage_Click" /></td>
                            <td>&nbsp;</td>
                </tr>
                <tr><td><asp:Label ID="lblError" runat="server" ForeColor="Red"></asp:Label></td></tr>
            </tbody>
        </table>
        
        <table>
            <tbody>
                <tr>
                    <td class="style4"><span class="subheading">Subscriptions</span><hr /></td>
                    <td class="style3"><span class="subheading">Files</span><hr /></td>
                </tr>
                <tr>
                    <td><asp:ListBox ID="lstSubs" runat="server" Height="116px" Width="179px" 
                            AutoPostBack="True" BackColor="#F0F4FF"></asp:ListBox>
                        </td>
                    <td><asp:ListBox ID="lstFiles" runat="server" Height="116px" Width="179px" 
                            AutoPostBack="True" BackColor="#F0F4FF"></asp:ListBox></td>
                </tr>
                <tr>
                    <td><asp:Button ID="btnViewSub" runat="server" Text="View Subscription" 
                            Width="148px" onclick="btnViewSub_Click" /></td>
                    <td><asp:Button ID="btnViewFile" runat="server" Text="View File" Width="100px" 
                            onclick="btnViewFile_Click" /></td>
                </tr>
                <tr>
                    <td><span class="subheading">Friends</span><hr /></td>
                </tr>
                <tr>
                    <td><asp:ListBox ID="lstFriends" runat="server" Height="116px" Width="179px" 
                            AutoPostBack="True" BackColor="#F0F4FF"></asp:ListBox></td>
                    <td valign="top">&nbsp;</td>
                </tr>
                <tr>
                    <td><asp:Button ID="btnViewFriend" runat="server" Text="View Profile" 
                            onclick="btnViewFriend_Click" /></td>
                </tr>
            </tbody>
        </table>
        
        
    </div>
</asp:Content>
